import request from '@/utils/request'

export function fetchList(data) {
  return request({
    url: '/price/list',
    method: 'post',
    data
  })
}

export function createPrice(data) {
  return request({
    url: '/price/create',
    method: 'post',
    data
  })
}

export function updatePrice(data) {
  return request({
    url: '/price/update',
    method: 'post',
    data
  })
}

export function disablePrice(data) {
  return request({
    url: '/price/disable',
    method: 'post',
    data
  })
}

export function enablePrice(data) {
  return request({
    url: '/price/enable',
    method: 'post',
    data
  })
}

